import java.util.Arrays;

class test1{
   public static void print(){//静态方法
       System.out.println("hello");
       int[] array={1,2,3,4};
        Arrays.toString(array);
   }

    @Override
    public String toString() {
        return "test1{}";
    }
}

public class test {
    public static void main(String[] args) {
        test1 a=new test1();
        System.out.println(a);
    }
}
